package net.lab1024.sa.admin.module.business.yct.yctTeeth.domain.form;

import io.swagger.v3.oas.annotations.media.Schema;
import java.time.LocalDateTime;
import javax.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 聊天信息 新建表单
 *
 * @Author zhangben
 * @Date 2024-12-20 11:07:08
 * @Copyright 20241218
 */

@Data
public class DialogueAddForm {

    @Schema(description = "对话id", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer dialogueId;

    @Schema(description = "发送方", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "发送方 不能为空")
    private Integer senderId;

    private String details;

    @Schema(description = "接收方", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "接收方 不能为空")
    private Integer receiverId;

    @Schema(description = "时间", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime timestamp;

    @Schema(description = "1已读2未读", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer isRead;

}